﻿namespace Home
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    public static class DictionaryHelper
    {
        internal static void TryAdd(this IDictionary<string, string> target, IDictionary<string, string> source, string key)
        {
            Debug.Assert(target != null);
            Debug.Assert(source != null);
            Debug.Assert(key != null);

            if (source.ContainsKey(key))
            {
                target[key] = source[key];
            }
        }
    }
}
